package com.day0310;

import java.io.IOException;
import java.io.RandomAccessFile;

public  class FinalClass {
    public static void main(String[] args) throws IOException {
        RandomAccessFile file = new RandomAccessFile("src/com/day0310/test.txt", "rw");
        file.writeBoolean(true);
        file.writeInt(123456);
        file.writeInt(7890);
        file.writeLong(10000000);
        file.writeInt(777);
        file.writeFloat(0.0001f);
        file.seek(5);
        System.out.println(file.readInt());
        file.close();
    }
}
//fianl修饰的类不能被继承
//class FinalClassSub extends FinalClass{

//}
